🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / app / src / main / java / com / geeksville / mesh / repository / bluetooth / BluetoothState.kt
Displaying Raw • Download
app/src/main/java/com/geeksville/mesh/repository/bluetooth/BluetoothState.kt 78274c792318331b11ab64cd28e58e829875b8c2 (78274c79) Text, 1.47 KB
T8b949e/*
* Copyright (c) 2025 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787com.geeksville.mesh.repository.bluetooth
Tff7b72import T7ee787no.nordicsemi.kotlin.ble.client.android.Peripheral
Tff7b72import T7ee787org.meshtastic.core.model.util.anonymize
T8b949e/** A snapshot in time of the state of the bluetooth subsystem. */
Tff7b72data Tff7b72class T56d364BluetoothStateTb4b4b4(
T8b949e/** Whether we have adequate permissions to query bluetooth state */
Tff7b72val Te6edf3hasPermissionsTb4b4b4: Tffa657Boolean Tff7b72= Tff7b72falseTb4b4b4,
T8b949e/** If we have adequate permissions and bluetooth is enabled */
Tff7b72val Te6edf3enabledTb4b4b4: Tffa657Boolean Tff7b72= Tff7b72falseTb4b4b4,
T8b949e/** If enabled, a list of the currently bonded devices */
Tff7b72val Te6edf3bondedDevicesTb4b4b4: Te6edf3ListTff7b72<Te6edf3PeripheralTff7b72> Tff7b72= Te6edf3emptyListTb4b4b4(Tb4b4b4)Tb4b4b4,
Tb4b4b4) Tb4b4b4{
Tff7b72override Tff7b72fun Td2a8fftoStringTb4b4b4(Tb4b4b4)Tb4b4b4: Tffa657String Tff7b72=
Ta5d6ff"Ta5d6ffBluetoothState(hasPermissions=Tffd700$Te6edf3hasPermissionsTa5d6ff, enabled=Tffd700$Te6edf3enabledTa5d6ff, bondedDevices=Tffd700${Te6edf3bondedDevicesTb4b4b4.Te6edf3map Tb4b4b4{
Tffa657itTb4b4b4.Te6edf3anonymize
Tb4b4b4}Tffd700}Ta5d6ff)Ta5d6ff"
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.04s